package com.ecar.core.common.entity;

import java.io.Serializable;
import java.util.Date;

public class FlightInfo implements Serializable {
    private String id;

    private String flightNo;

    private String rate;

    private String depCity;

    private String depCode;

    private String arrCity;

    private String arrCode;

    private String depTerminal;

    private String arrTerminal;

    private Date depScheduled;

    private Date arrScheduled;

    private Date depEstimated;

    private Date arrEstimated;

    private Date depActual;

    private Date arrActual;

    private String flightState;

    private String remark;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFlightNo() {
        return flightNo;
    }

    public void setFlightNo(String flightNo) {
        this.flightNo = flightNo;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public String getDepCity() {
        return depCity;
    }

    public void setDepCity(String depCity) {
        this.depCity = depCity;
    }

    public String getDepCode() {
        return depCode;
    }

    public void setDepCode(String depCode) {
        this.depCode = depCode;
    }

    public String getArrCity() {
        return arrCity;
    }

    public void setArrCity(String arrCity) {
        this.arrCity = arrCity;
    }

    public String getArrCode() {
        return arrCode;
    }

    public void setArrCode(String arrCode) {
        this.arrCode = arrCode;
    }

    public String getDepTerminal() {
        return depTerminal;
    }

    public void setDepTerminal(String depTerminal) {
        this.depTerminal = depTerminal;
    }

    public String getArrTerminal() {
        return arrTerminal;
    }

    public void setArrTerminal(String arrTerminal) {
        this.arrTerminal = arrTerminal;
    }

    public Date getDepScheduled() {
        return depScheduled;
    }

    public void setDepScheduled(Date depScheduled) {
        this.depScheduled = depScheduled;
    }

    public Date getArrScheduled() {
        return arrScheduled;
    }

    public void setArrScheduled(Date arrScheduled) {
        this.arrScheduled = arrScheduled;
    }

    public Date getDepEstimated() {
        return depEstimated;
    }

    public void setDepEstimated(Date depEstimated) {
        this.depEstimated = depEstimated;
    }

    public Date getArrEstimated() {
        return arrEstimated;
    }

    public void setArrEstimated(Date arrEstimated) {
        this.arrEstimated = arrEstimated;
    }

    public Date getDepActual() {
        return depActual;
    }

    public void setDepActual(Date depActual) {
        this.depActual = depActual;
    }

    public Date getArrActual() {
        return arrActual;
    }

    public void setArrActual(Date arrActual) {
        this.arrActual = arrActual;
    }

    public String getFlightState() {
        return flightState;
    }

    public void setFlightState(String flightState) {
        this.flightState = flightState;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FlightInfo other = (FlightInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFlightNo() == null ? other.getFlightNo() == null : this.getFlightNo().equals(other.getFlightNo()))
            && (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()))
            && (this.getDepCity() == null ? other.getDepCity() == null : this.getDepCity().equals(other.getDepCity()))
            && (this.getDepCode() == null ? other.getDepCode() == null : this.getDepCode().equals(other.getDepCode()))
            && (this.getArrCity() == null ? other.getArrCity() == null : this.getArrCity().equals(other.getArrCity()))
            && (this.getArrCode() == null ? other.getArrCode() == null : this.getArrCode().equals(other.getArrCode()))
            && (this.getDepTerminal() == null ? other.getDepTerminal() == null : this.getDepTerminal().equals(other.getDepTerminal()))
            && (this.getArrTerminal() == null ? other.getArrTerminal() == null : this.getArrTerminal().equals(other.getArrTerminal()))
            && (this.getDepScheduled() == null ? other.getDepScheduled() == null : this.getDepScheduled().equals(other.getDepScheduled()))
            && (this.getArrScheduled() == null ? other.getArrScheduled() == null : this.getArrScheduled().equals(other.getArrScheduled()))
            && (this.getDepEstimated() == null ? other.getDepEstimated() == null : this.getDepEstimated().equals(other.getDepEstimated()))
            && (this.getArrEstimated() == null ? other.getArrEstimated() == null : this.getArrEstimated().equals(other.getArrEstimated()))
            && (this.getDepActual() == null ? other.getDepActual() == null : this.getDepActual().equals(other.getDepActual()))
            && (this.getArrActual() == null ? other.getArrActual() == null : this.getArrActual().equals(other.getArrActual()))
            && (this.getFlightState() == null ? other.getFlightState() == null : this.getFlightState().equals(other.getFlightState()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFlightNo() == null) ? 0 : getFlightNo().hashCode());
        result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
        result = prime * result + ((getDepCity() == null) ? 0 : getDepCity().hashCode());
        result = prime * result + ((getDepCode() == null) ? 0 : getDepCode().hashCode());
        result = prime * result + ((getArrCity() == null) ? 0 : getArrCity().hashCode());
        result = prime * result + ((getArrCode() == null) ? 0 : getArrCode().hashCode());
        result = prime * result + ((getDepTerminal() == null) ? 0 : getDepTerminal().hashCode());
        result = prime * result + ((getArrTerminal() == null) ? 0 : getArrTerminal().hashCode());
        result = prime * result + ((getDepScheduled() == null) ? 0 : getDepScheduled().hashCode());
        result = prime * result + ((getArrScheduled() == null) ? 0 : getArrScheduled().hashCode());
        result = prime * result + ((getDepEstimated() == null) ? 0 : getDepEstimated().hashCode());
        result = prime * result + ((getArrEstimated() == null) ? 0 : getArrEstimated().hashCode());
        result = prime * result + ((getDepActual() == null) ? 0 : getDepActual().hashCode());
        result = prime * result + ((getArrActual() == null) ? 0 : getArrActual().hashCode());
        result = prime * result + ((getFlightState() == null) ? 0 : getFlightState().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}